<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加优惠券</title>

    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/src/layui.js"></script>
    <script src="/layui/src/jquery-3.2.1.min.js"></script>

    <link rel="stylesheet" href="css/CouponAdded.css">
    <script type="text/javascript" src="js/CouponAdded.js"></script>

</head>
<body>
<div class="layui-container" id="div_div_idss">
    <!--头部-->
    <div class="layui-row" id="List_Header">
        <div>
            <span id="color_id">▉</span>
            <span id="List_Header_span">添加优惠券</span>
        </div>
        <div id="btn_div">
            <button type="button" class="layui-btn" onclick="reload()">
                <i class="layui-icon layui-icon-refresh"></i> &nbsp;刷新
            </button>

            <button type="button" class="layui-btn" onclick="go()">
                <i class="layui-icon layui-icon-left"></i> 返回
            </button>
        </div>
    </div>
    <!--表单-->
    <form class="layui-form "  id="form_id">
        <div id="div_id">
            <!--优惠券名称-->
            <div class="layui-form-item">
                <label class="layui-form-label la">优惠券名称：</label>
                <div class="layui-input-block">
                    <input type="text" name="couponName" required lay-verify="required"  autocomplete="off" class="layui-input"/>
                </div>
            </div>

            <!--优惠券类型-->
            <div class="layui-form-item radio_class">
                <label class="layui-form-label" id="coupon_type"> 优惠券类型：</label>
                <div class="layui-input-block" >
                    <input type="radio" name="couponType" value="2" title="满减券"lay-filter="status"  id="couponMoney" checked="checked"/>
                    <input type="radio" name="couponType" value="3" title="优惠券"  lay-filter="status" />
                </div>
            </div>

            <!--满减券满减金额-->
            <div class="layui-form-item" id="coupon">
                <label class="layui-form-label" style="text-indent: -2em">满减金额：</label>
                <div class="layui-input-block">
                    <input type="text" name="couponMoney"  required lay-verify="required"  autocomplete="off"  class="layui-input"/>
                </div>
            </div>

            <!--优惠券金额-->
            <div class="layui-form-item">
                <label class="layui-form-label la">优惠券金额：</label>
                <div class="layui-input-block">
                    <input type="text" name="couponPrice" required lay-verify="required"  autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <!--开始时间-->
            <div class="layui-form-item">
                <label class="layui-form-label">开始时间：</label>
                <div class="layui-input-block" class="i_div">
                    <input type="text" name="startDate" required lay-verify="required" autocomplete="off"  class="layui-input" id="startDate" placeholder="请选择时间">
                    <i class="layui-icon layui-icon-date l"></i>
                </div>
            </div>
            <!--到期时间-->
            <div class="layui-form-item">
                <label class="layui-form-label">结束时间：</label>
                <div class="layui-input-block i_div">
                    <input type="text" name="endDate" required lay-verify="required" autocomplete="off"  class="layui-input" id="endDate" placeholder="请选择时间">
                    <i class="layui-icon layui-icon-date l"></i>
                </div>
            </div>
            <!--上线/下线-->
            <div class="layui-form-item radio_class">
                <label class="layui-form-label" id="radio_id"> 上线/下线：</label>
                <div class="layui-input-block" >
                    <input type="radio" name="online" value="2" title="上线" checked="checked"/>
                    <input type="radio" name="online" value="3" title="下线" />
                </div>
            </div>
            <!--发行数量-->
            <div class="layui-form-item">
                <label class="layui-form-label">发行数量：</label>
                <div class="layui-input-block">
                    <input type="text" name="issueQuantity" required lay-verify="required"  name="issueQuantity" autocomplete="off" class="layui-input" oninput = "value=value.replace(/[^\d]/g,'')"/>
                </div>
            </div>
            <input type="hidden" id="createId" name="createId"/>

            <!--获取方式-->
            <div class="layui-form-item">
                <label class="layui-form-label">获取方式：</label>
                <div class="layui-input-block">
                    <select  id="mode" name="mode">
                        <option value="">请选择发放方式</option>
                        <option value="2">自动发放</option>
                        <option value="3">活动领取</option>
                        <option value="4">人工发放</option>
                        <option value="5">无限制</option>
                    </select>
                </div>
            </div>

            <!--优惠券类型-->
            <div class="layui-form-item">
                <label class="layui-form-label la">优惠券类型：</label>
                <div class="layui-input-block">
                    <select  id="type" name="type">
                        <option value="">请选择类型</option>
                        <option value="2">商品</option>
                        <option value="3">视频</option>
                        <option value="4">无限制</option>
                    </select>
                </div>
            </div>

            <!--备注-->
            <div class="layui-form-item">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-block">
                    <textarea class="layui-textarea textarea" name="remark" id="remark"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" id="btn_id">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">提交</button>
                </div>
            </div>
            <!--优惠券编码-->
            <input type="hidden" name="couponCode" id="couponCode">
        </div>


    </form>
</div>
</body>
</html>